<div id="main">
<br />
<input type="button" value="删除所选" onclick="if(checkedor('form1') && confirm('确定删除所选？'))document.getElementById('form1').submit()"/>
		<h3>文章列表</h3>
		<?php echo $filter?>
		<?php echo $pagination?>
		<form id="form1" method="post" action="<?php echo lib_admin::base('home/dela')?>">
    	<table cellpadding="0" cellspacing="0" class="section">
    		<tr>
    			<td><input type="checkbox" onclick="checkall(this)" /></td>
    			<td>标题</td>
    			<td>添加时间</td>
    			<td>操作</td>
    		</tr>
    		<?php foreach ($list as $k=>$a):?>
			<tr>
				<td><?php echo Form::checkbox('article_id[]',$a['_id'])?></td>
                <td><a href="<?php echo lib_admin::base('home/edita/'.$a['_id'])?>"><?php echo common::cutstr($a['title'], 25)?></a></td>
                <td style="white-space:nowrap"><?php echo date('Y-m-d H:i:s',$a['addTime'])?></td>
                <td class="action" style="white-space:nowrap">
                	<a class="view" href="<?php echo project::a_url($a)?>" target="_blank">View</a>
	                <a class="edit" href="<?php echo lib_admin::base('home/edita/'.$a['_id'])?>">Edit</a>
	                <a onclick="return confirm('确定删除？')" class="delete" href="<?php echo lib_admin::base('home/dela/'.$a['_id'])?>">Delete</a>
                </td>
            </tr>
            <?php endforeach;?>               
        </table></form>
</div>
<!-- // #main -->